<include file="Public:header" />
<include file="Public:left" />

<style>
td,th{text-align:center;}
h2{line-height: 42px;}
</style>
<section>
	<div class="page_title">
	<h2 class="fl">会员列表</h2>
	<a class="fr" href="{:url('member/add')}">导入数据</a>
	</div>
	<div>
		<form class="" action="" method="post">
			<div class="sDiv">
				<div class="sDiv2">
					<input type="text" class="qsbox" name="keyword" placeholder="可搜索账号" value="">
					<input  class="btn"type="submit" value="搜索">
				</div>
			</div>
		</form>
	</div>
	<table class="table">
		<tr>
		<th>会员编号</th>
		<th>会员账号</th>
		<th>会员积分</th>
		<th>注册时间</th>
        <th>大转盘次数</th>
        <th>砸金蛋次数</th>
        <th>摇一摇次数</th>
		<th>操作</th>
		</tr>
		<volist name="data" id="vo">
		<tr>
		<td>{$vo['id']}</td>
		<td>{$vo.nickname}</td>
		<td>{$vo.integral}</td>
		<td>{$vo.rtime|date="Y-m-d H:i:s",###}</td>
        <td>{$vo.wheel_time}</td>
        <td>{$vo.egg_time}</td>
        <td>{$vo.shake_time}</td>
		<td>
			<a href="{:url('member/edit',array('id'=>$vo['id']))}" class="inner_btn">编辑</a>
			<a href="{:url('member/ban',array('id'=>$vo['id']))}" class="inner_btn"><eq name="vo.status" value="0">恢复正常<else/>禁止登录</eq></a>
			<a onclick="return confirm('确认删除？')" href="{:url('member/del',array('id'=>$vo['id']))}"  class="inner_btn" >删除</a>
		</td>
		</tr>
		</volist>
	</table>
	{$data->render()}
</section>

	<script>
	$(document).ready(function(){
		$(".admin_tab li a").click(function(){
		var liindex = $(".admin_tab li a").index(this);
		$(this).addClass("active").parent().siblings().find("a").removeClass("active");
		$(".admin_tab_cont").eq(liindex).fadeIn(150).siblings(".admin_tab_cont").hide();
		});
		});
	</script>
</body>
</html>
